package com.yang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ViewTestController {


    @GetMapping("/success")
    String success(Model model){

        //model中的数据会被放在请求域中 request.setAttribute
        model.addAttribute("msg","你好，男神阳");
        model.addAttribute("address","https://www.bilibili.com/");


        return "success";
    }


}
